#include<cstdio>
using namespace std;
typedef long long ll;
int f(int x)
{
	return x==1 ? 1 : f(x>>1)+1;
}
int main()
{
	int m;
	while(scanf("%d",&m)!=EOF)
	{
		printf("%d\n",f(m));
	}
	return 0;
}